
<html>
<head>
<meta charset="UTF-8">
<title>字典词汇信息修改</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-edit.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout" scroll="no">
	<form id="ff" method="post">
		<div class="esaas-info-title">字典词汇信息</div>
		<table class="esaas-info-edit-table">
	    		<tr>
	    			<td width="15%" align="right">词汇缩写：</td>
	    			<td width="35%"><input class="easyui-textbox" type="text" name="wordShortCode" data-options="required:true" style="width:100%;height:25px;"></input></td>
	    			<td width="15%" align="right">&nbsp;</td>
	    			<td width="35%">
	    				<input type="hidden" name="wordId" id="wordId">
	    			</td>	    			
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right" valign="top">词汇英文描述：</td>
	    			<td colspan="3">
	    				<textarea name="wordEnDesc" class="easyui-validatebox" style="overflow-x:hidden;height:60px;width:98%;"></textarea>
	    			</td>
	    		</tr> 	    		
	    		<tr>
	    			<td width="15%" align="right" valign="top">词汇中文描述：</td>
	    			<td colspan="3">
	    				<textarea name="wordCnDesc" class="easyui-validatebox" style="overflow-x:hidden;height:60px;width:98%;"></textarea>
	    			</td>
	    		</tr>
			<tr>
				<td width="15%" align="right">创建用户：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="createUser" data-options="required:false" readOnly
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">创者时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="createTime" data-options="required:false" readOnly
					style="width: 100%; height: 25px;"></input></td>
			</tr>
		</table>
	</form>
	<div style="text-align: center; padding: 15px">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			onclick="submitForm()">&nbsp;保&nbsp;存&nbsp;</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>		
		$(function() {
			var wordId = $.getUrlParam('wordId');
			$.restfulGet('../../api/dict/word/info/' + wordId,null,function(data){
					$('#ff').form('load', {
						wordId : data.rows.wordId,
						wordShortCode : data.rows.wordShortCode,
						wordCnDesc : data.rows.wordCnDesc,
						wordEnDesc : data.rows.wordEnDesc,
						createUser : data.rows.createUser,
						createTime : data.rows.createTime
					});					
			});
		});
	
		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPut('../../api/dict/word/info', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
